import request from '@/utils/request'

// 查询列表
export function workorder_list(query) {
  return request({
    url: '/wms/workorder/list',
    method: 'get',
    params: query
  })
}

export function details(data) {
  return request({
    url: '/wms/workorder/details',
    method: 'post',
    data: data
  })
}

// 新增
export function workorder_add(data) {
  return request({
    url: '/wms/workorder/add',
    method: 'post',
    data: data
  })
}

// 修改
export function workorder_edit(data) {
  return request({
    url: '/wms/workorder/edit',
    method: 'put',
    data: data
  })
}


// 删除
export function workorder_delete(id) {
  return request({
    url: '/wms/workorder/' + id,
    method: 'delete'
  })
}

